<template>
    <div class="demo">
      <h2>学校名称：{{name}}</h2>
      <h2>学校地址：{{address}}</h2>
      <button @click="showName">点击提示学校名称</button>
    </div>
  </template>
  
  <script>
  export default {
    name: 'SchoolComponent',
    data(){
      return {
        name:'尚硅谷',
        address:'深圳*南山'
      }
    },
  }
  </script>
  
  <style scoped>
    .demo{
      background-color: orange;
    }
  </style>